home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Tech Arsenal 1
/
Tech Arsenal (Arsenal Computer).ISO
/
tek-05
/
pbmnu20.zip
/
MENU.DOC
< prev
next >
Wrap
Text File
|
1993-03-30
|
13KB
|
437 lines
Author: Robert Piskac Jr.
301 South 27th Street
Lafayette, IN 47904 USA
PH# (317)-449-4018
This software is shareware.
$79.95 Software Price per File Server
6.00 Tax Ohio
------------
$85.95 Total USA
Make check out to -> Piskac Bakery Software and send to the following Address
Piskac Bakery Software
3376 East 65 th Street
Cleveland, OH 44127 USA
Support by E-Mail or US MAIL. If you can catch me home, I will help out.
E-MAIL: AK371@CLEVELAND.FREENET.EDU
Program: menu.exe
Version: V2.00 for Novell Netware 2.X 3.X
Description: This is a menu program that supports novells
menu script language. I included the basic commands needed
to run applications from the menu. This is not Public Domain
Software. This program is not a Novell Clone program.
Benefits: - Menu program is not memory resident when dos applications
are running. Frees up needed memory.
- No more goXXX.bat & restart.XXX files being stored all over
the file server. All batch files are stored in the directory
SYS:PUBLIC\BATCH\GOBAT which you can change this path.
- Menu program has security built in. When the menu program
is idle for 5 minutes, the screen will blank. When the user
touches a key, the menu program will require the user to enter
her/his password. This can be turned on/off by the supervisor.
- Menu Items WILL NOW SCROLL
- Mouse Support Left Button = RETURN
Right Button = ESC
- Hide Menus and Items from users with NEW menu script commands
#IF_MEMBER(PAYROLL,ACCOUNTING)
#END
#IF_USER(PISKAC,SMITH,JONES)
#END
Restrictions: - You can only open 20 pop up menus on the screen at one time.
- You MUST use the <CALL> command in the menu script for the
menu program to restart if you are calling batch files outside
the menu script.
- Some CGA video cards will cause snow on the screen.
- Only 35 Hot Keys are supported an * will appear on menu
items that do not have a hot key.
Software Testing.
All testing was done on a Novell Netware V3.11 single file server network.
All programming was done at my friends office. Thanks ERIC for all the
help and equipment.
If you register the software, I will send you notifications on all
enhancements. When you send in your check please tell me...
Name of Person Registering Software
Address and Country
Phone Number
Installation
Step 1 : Create directory SYS:PUBLIC\BATCH\GOBAT
You can use your own directory path, but remember to set it in
the <menu>.cfg file.
TEMP=SYS:<YOUR_DIRECTORY_PATH>
Step 2 : Start syscon and give the group everyone the following rights
to the newly created directory...
READ
FILE SCAN
CREATE
ERASE
MODIFY
WRITE
Step 3 : Add the following line to your system login script.
map root ins S4:FILE_SERVER_NAME/SYS:PUBLIC\BATCH\GOBAT
or
map root ins S4:FILE_SERVER_NAME/<YOUR_CUSTOM_PATH>
Step 4 : Backup your old Novell menu program.
Step 5 : Copy the MENU.EXE, RESTART.BAT, !LOGOUT.BAT and PBMENU.CFG files to
the SYS:PUBLIC subdirectory.
Step 6 : Test menu program. MAKE SURE IT WORKS.
ONE - One problem you will have with the new menu system is that
the menu program will not start back up. This problem can be
fixed by using the DOS <CALL> command in the menu script file.
Any time you want to CALL a batch file from the menu script, use
the CALL command.
TWO - Old goXXX.bat files will cause problems. Please use the kill.exe
program to scan file server to remove old files. BE CAREFUL
first backup all files on server. The program deletes all files
that look like goXXX.bat & restart.XXX. Where X is a number.
EXAMPLE
KILL /all /Delete
use KILL /? for help.
The menu program has worked well for me on my Novell file server. I am
interested if anyone else can use it.
Menu Positions.
%Main Menu,10,40,9
%<BANNER_NAME>,<Y_MENU_CENTER_VALUE>,<X_MENU_CENTER_VALUE>,<COLOR_PALETTE>
0 -> 24 0 -> 79 0 -> 9
Color Palette Colors
--------------------
0 -> Blue Style 1
1 -> Blue Style 2
2 -> Black Style 1
3 -> Black Style 2
4 -> Magenta
5 -> Cyan
6 -> Red
7 -> Orange
8 -> Green
9 -> Gray
If you are calling a batch file from the menu program and want the menu
program to restart, use the CALL statement.
Example
%MAIN MENU,10,40,0
1) Word Processor Example 1
CALL WP.BAT
2) Word Processor Example 2
REM this is the wp.bat file contents
REM %user% is a dos ENV variable set at login time
map ins s4:=data:apps\dos\wp
cd \users\%user%\wp
wp.exe
map del s4:
cd \users\%user%
This is useful if you do not want the menu program to restart. Like when
you want to logout of the network. Write a batch file that will log you
out of the network.
Put !LOGOUT.BAT file in SYS:PUBLIC
======!LOGOUT.BAT======
@ECHO OFF
MAP F:=SYS:LOGIN > NUL
F:
OFFNET
======END-OF-FILE=====
Put offnet.bat file in sys:login subdirectory. Make sure LOGOUT.EXE is in
the same directory as offnet.bat
======OFFNET.BAT======
@ECHO OFF
:
: Logout Script
: Remove Environment variables
SET LANID=
SET USER=
SET EXIT=
logout
: Start up local menu after this line
======END-OF-FILE=====
MENU SCRIPT EXAMPLE
%MAIN MENU,10,40,0
1) Word Processor Example 1
@ECHO OFF
CALL WP.BAT
2) Word Processor Example 2
@ECHO OFF
REM %user% is a dos ENV variable set at login time
map ins s4:=data:apps\dos\wp
cd \users\%user%\wp
wp.exe
map del s4:
cd \users\%user%
3) LOGOUT
@ECHO OFF
REM NETWORK MENU PROGRAM WILL NOT RESTART -- CALL NOT USED --
!LOGOUT.BAT
#IF_MEMBER(ACCOUNTING,PAYROLL)
4) Payroll Program
@ECHO OFF
REM This menu item will only be seen by people
REM who belong to these novell user groups
CALL PAYROLL.BAT
#END
#IF_USER(SMITHJ)
5) Jim Smiths Program
@ECHO OFF
REM This menu item will only be seen by the
REM user Jim Smith
CALL PAYROLL.BAT
#END
I do not support the !LOGOUT command. You must use the !LOGOUT.BAT file
that comes with this software.
I also assume that you will number your menu selections starting at
1 thru Z. That's the letter Z. Or A thru Z. Novell will do a string search
to find the name of the selection you are typing in. I found that the number
and letter labeling works best for my users. I try to keep it simple.
You can use the AUTONUM parameter to auto number your menu selection. The
SORT parameter will sort your menu entries.
You can use the LABEL parameter to set what type of labeling you want on
the menu items. By default it is numbers 1 thru 9 ,A..Z. Use....
LABEL=LETTERS
and the menu items will be A..Z.
If you want to know more about the menu program, please write me a letter
or send me E-MAIL.
NEW MENU SCRIPT COMMANDS
The new menu script commands will allow you to hide menus and menu
items from users. Be careful. Menu script lines can only be 72 characters
long. You must fit your #IF_MEMBER and #IF_USER commands on one line.
No nested if statements are supported. You must use the #END statement
to end the if statement. The best way to attack this, is to test out
the new commands to get the feel on how they work.
Only include users who belong to Novell user groups to see these
menus or menu items.
#IF_MEMBER(<GROUP_NAME>,<GROUP_NAME>,...,<GROUP_NAME>)
......
<Menu script>
......
#END /* End IF MEMBER Statement */
Only include users to see these menus or menu items.
#IF_USER(<USER_NAME>,<USER_NAME>,...,<USER_NAME>)
......
<Menu script>
......
#END /* End #IF_USER Statement */
Netware is a Copyright of Novell
Configuration files:
Each menu you have can have a <menu_name>.cfg file. The configuration file
will allow the LAN Manager to....
1) Restrict what Novell user groups can exit the menu system. Use multiple
exit lines for more than 1 novell User Group
Default -> EVERYONE
EXIT=ACAD
EXIT=MANAGERS
2) Set where the go000.bat files are saved.
Default -> SYS:PUBLIC\BATCH\GOBAT
TEMP=SYS:PUBLIC\BATCH\GOBAT
3) Set the screen saver time out
Default -> 5
TIMEOUT=5
4) Set the Screen saver prompt. Use underscores for spaces.
Default -> PB Software Menu System
PROMPT=MY_COMPANY_NAME
5) Set the Logout command. Use !LOGOUT if you have a !LOGOUT.BAT file.
Default -> LOGOUT
LOGOUT=!LOGOUT
6) Turn passwords off
Default -> ON
PASSWORD=OFF
NOTE: If Passwords are TURNED ON, the menu program will only ask for the
passwords for users who's passwords minimum length is greater than
zero. Use syscon to check the users account restrictions.
7) Sort menu Items
Default = OFF
SORT=ON
8) Auto Number menu items
Default = OFF
AUTONUM=ON
9) Label menu Items
Default = Numbers
LABEL=LETTERS
EXAMPLE
If you type the following command the menu system works like this.
menu main
First it will try to read a file called => main.cfg
If file not found it will read => pbmenu.cfg
if it cannot find either of these 2 files it will use the default values.
MENU CONFIGURATION COMMANDS Examples
=============== PBMENU.CFG =====================================
PROMPT=MY_COMPANY_NAME
EXIT=EVERYONE
PASSWORD=ON
TEMP=SYS:PUBLIC\BATCH\GOBAT
TIMEOUT=1
LOGOUT=LOGOUT
SORT=ON
AUTONUM=ON
LABEL=NUMBERS
=================================================================
memo.exe is a message program that will display a note on the screen
for 1 week then it will not show the message. Remember the program
reads the date stamp. If your message will not display, it is because
the file date stamp is over 7 days old. use the up carrot to blink text.
memo.exe is public domain.
======== message.txt =======
Hello ^Everyone^
============================
The word Everyone will blink.
Restriction - Only a limited amount of text will display.
usage
memo <PATH> <FILENAME>
memo SYS:PUBLIC MESSAGE.TXT
=================================================================
lmenu.exe is a menu program for the local machine on the network or stand alone
machine. It is a stripped down version of the pbmenu. This program
can read the <menu>.mnu files and <menu>.cfg files. This program is
provided free of charge with the purchase of pbmenu.
Config File parameters
=======================
1) Set where the go000.bat files are saved.
Default -> C:\DOS\
TEMP=C:\MENU\
NOTE: Be careful remember to put a backslash at the end of the temp path.
Correct: TEMP=A:\TEMP\
InCorrect: TEMP=A:\TEMP
2) Set the screen saver time out
Default -> 5
TIMEOUT=5
3) Set the Screen saver prompt. Use underscores for spaces.
Default -> PB Software Menu System
PROMPT=MY_COMPANY_NAME
4) Sort menu Items
Default = OFF
SORT=ON
5) Auto Number menu items
Default = OFF
AUTONUM=ON
6) Label menu Items
Default = Numbers
LABEL=LETTERS
Here is how I use the 2 programs on my network. In each PC Node on my
network, I put the lmenu.exe file in the c:\menu subdirectory. At the end
of the autoexec file I put the batch file to start the menu program. I
renamed the lmenu.exe file to menu.exe.
============= m.bat ===========
@ECHO OFF
c:
cd \menu
menu local.mnu
=========== end ===============
Make sure that the m.bat file is in your path.
======= local.mnu =============
%Don's Computer,12,40,0
1) LAN (DON) Local Area Network
@ECHO OFF
F:LOGIN DON
IF ERRORLEVEL 1 GOTO :RESTART
GOTO :END
:RESTART
pause
M.BAT
:END
2) LAN Local Area Network
@ECHO OFF
IF NOT EXIST F:LOGIN.EXE GOTO :LOGOUT
F:LOGIN
IF ERRORLEVEL 1 GOTO :RESTART
GOTO :END
:RESTART
pause
M.BAT
:END
====================================